package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSgazhtjgzlMapper;
import com.ruoyi.gcgl.domain.GcProjectSgazhtjgzl;
import com.ruoyi.gcgl.service.IGcProjectSgazhtjgzlService;
import com.ruoyi.common.core.text.Convert;

/**
 * 施工安装合同竣工资料Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-11
 */
@Service
public class GcProjectSgazhtjgzlServiceImpl implements IGcProjectSgazhtjgzlService 
{
    @Autowired
    private GcProjectSgazhtjgzlMapper gcProjectSgazhtjgzlMapper;

    /**
     * 查询施工安装合同竣工资料
     * 
     * @param id 施工安装合同竣工资料主键
     * @return 施工安装合同竣工资料
     */
    @Override
    public GcProjectSgazhtjgzl selectGcProjectSgazhtjgzlById(Long id)
    {
        return gcProjectSgazhtjgzlMapper.selectGcProjectSgazhtjgzlById(id);
    }

    /**
     * 查询施工安装合同竣工资料列表
     * 
     * @param gcProjectSgazhtjgzl 施工安装合同竣工资料
     * @return 施工安装合同竣工资料
     */
    @Override
    public List<GcProjectSgazhtjgzl> selectGcProjectSgazhtjgzlList(GcProjectSgazhtjgzl gcProjectSgazhtjgzl)
    {
        return gcProjectSgazhtjgzlMapper.selectGcProjectSgazhtjgzlList(gcProjectSgazhtjgzl);
    }

    /**
     * 新增施工安装合同竣工资料
     * 
     * @param gcProjectSgazhtjgzl 施工安装合同竣工资料
     * @return 结果
     */
    @Override
    public int insertGcProjectSgazhtjgzl(GcProjectSgazhtjgzl gcProjectSgazhtjgzl)
    {
        return gcProjectSgazhtjgzlMapper.insertGcProjectSgazhtjgzl(gcProjectSgazhtjgzl);
    }

    /**
     * 修改施工安装合同竣工资料
     * 
     * @param gcProjectSgazhtjgzl 施工安装合同竣工资料
     * @return 结果
     */
    @Override
    public int updateGcProjectSgazhtjgzl(GcProjectSgazhtjgzl gcProjectSgazhtjgzl)
    {
        return gcProjectSgazhtjgzlMapper.updateGcProjectSgazhtjgzl(gcProjectSgazhtjgzl);
    }

    /**
     * 批量删除施工安装合同竣工资料
     * 
     * @param ids 需要删除的施工安装合同竣工资料主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtjgzlByIds(String ids)
    {
        return gcProjectSgazhtjgzlMapper.deleteGcProjectSgazhtjgzlByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除施工安装合同竣工资料信息
     * 
     * @param id 施工安装合同竣工资料主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSgazhtjgzlById(Long id)
    {
        return gcProjectSgazhtjgzlMapper.deleteGcProjectSgazhtjgzlById(id);
    }
}
